/**
 * 
 */
package com.acminds.fotoporter.ui.controllers;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

import com.acminds.fotoporter.persistence.dto.Privilege;
import com.acminds.fotoporter.persistence.dto.Role;
import com.acminds.fotoporter.service.client.RoleService;
import com.acminds.fotoporter.ui.BaseAction;

/**
 * @author MANSUR
 *
 */
@ManagedBean
@RequestScoped
public class RoleAction extends BaseAction {

	@ManagedProperty(value="#{roleService}")
	private RoleService roleService;
	@ManagedProperty(value="#{role}")
	private Role role;
	@ManagedProperty(value="#{privilege}")
	private Privilege privilege;
	public RoleService getRoleService() {
		return roleService;
	}
	public void setRoleService(RoleService roleService) {
		this.roleService = roleService;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public Privilege getPrivilege() {
		return privilege;
	}
	public void setPrivilege(Privilege privilege) {
		this.privilege = privilege;
	}
	
	
}
